﻿ALTER TABLE [dbo].[ErrorMessages]
    ADD CONSTRAINT [FK_ErrorMessages] FOREIGN KEY ([ParentEventId], [ParentServiceName]) REFERENCES [dbo].[ServiceStatuses] ([ParentEventId],[ServiceName]) ON DELETE CASCADE ON UPDATE NO ACTION;

